/**
 * 邮件相关的请求
 */
import ApiBase from './ApiBase';
import Urls from '../ApiUrls';

class ApiEmail {
  /*收件箱接口*/
  queryParseEmailList(params){
    return ApiBase.send(Urls.URL_PARSE_EMAIL_LIST, params);
  }
  updateEmailProcess(params) {
    return ApiBase.send(Urls.URL_UPDATE_EMAIL_PROCESS,params);
  }
  updateEmailAddress(params) {
    return ApiBase.send(Urls.URL_UPDATE_EMAIL_ADDRESS,params);
  }
  updateEmailLBatch(params) {
    return ApiBase.send(Urls.URL_UPDATE_EMAIL_BATCH,params);
  }
  updateContactEmailLAddressBatch(params) {
    return ApiBase.send(Urls.URL_UPDATE_EMAIL_ADDRESS_BATCH,params);
  }
  downloadFile(params) {
    return ApiBase.send(Urls.URL_DOWNLOAD_FILE,params);
  }
  updateEmailTags(params) {
    return ApiBase.send(Urls.URL_EMAIL_UPDATE_TAGS, params);
  }
  getTagList(params) {
    return ApiBase.send(Urls.URL_EMAIL_TAG_LIST, params);
  }
  relatedUser(params){
    return ApiBase.send(Urls.URL_EMAIL_RELATED_USER, params);
  }
  queryFailEmailList(params){
    return ApiBase.send(Urls.URL_FAIL_EMAIL_LIST, params);
  }
  dealFailEmail(params) {
    return ApiBase.send(Urls.URL_DEAL_FAIL_EMAIL, params);
  }
  deleteFailEmail(params) {
    return ApiBase.send(Urls.URL_DELETE_FAIL_EMAIL, params);
  }



  /*已发邮件接口*/
  sendEmail(params){
    return ApiBase.send(Urls.URL_SEND_EMAIL, params);
  }
  querySendEmailList(params){
    return ApiBase.send(Urls.URL_SEND_EMAIL_LIST, params);
  }
  queryEmailDetail(params){
    return ApiBase.send(Urls.URL_EMAIL_DETAIL, params);
  }
  getEmailHistory(params){
    return ApiBase.send(Urls.URL_EMAIL_HISTORY_LIST, params);
  }
  getEmailHistoryCount(params){
    return ApiBase.send(Urls.URL_EMAIL_HISTORY_COUNT, params);
  }

  /*黑名单接口*/
  queryBlacklist(params){
    return ApiBase.send(Urls.URL_EMAIL_QUERY_BLACKLIST, params);
  }
  addBlacklist(params) {
    return ApiBase.send(Urls.URL_EMAIL_ADD_BLACKLIST,params);
  }
  deleteBlacklist(params) {
    return ApiBase.send(Urls.URL_EMAIL_DELETE_BLACKLIST,params);
  }
 /* 查询通讯录 */
  queryAddressBooks(params){
    return ApiBase.send(Urls.URL_EMAIL_ADDRESS_BOOK, params);
  }

  /* 查询联系人列表 */
  queryContactUserList(params){
    return ApiBase.send(Urls.URL_ONTACT_LIST, params);
  }

  /* 发送邮件*/
  sendAdEmails(params){
    return ApiBase.send(Urls.URL_CONTACT_SENDADEMAIL, params);
  }

}
export  default  ApiEmail
